Laser marking through the lens of an image scanning system with multiple location image calibration

ABSTRACT

A laser marking system includes a laser, an image capture device, a marking head including electromagnetic energy deflectors and a lens, beam paths of the laser of the image capture device both passing through the lens, and a computer system. The computer system is programmed to perform a method including generating an image calibration model at each of multiple areas across a marking field of the laser marking system, adjusting the electromagnetic energy deflectors to direct the beam path of the image capture device to multiple different locations within the marking field of the laser marking system, and capturing image tiles at each of the multiple different locations with the image capture device, wherein at each of the multiple different locations, if a location corresponds to an area at which an image calibration model was generated, correcting the image tile according to the image calibration model generated at the location.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Patent Application Ser. No. 62/755,865, titled “LASER MARKING THROUGH THE LENS OF AN IMAGE SCANNING SYSTEM WITH MULTIPLE LOCATION IMAGE CALIBRATION,” filed Nov. 5, 2018, which is incorporated by reference herein in its entirety for all purposes.

BACKGROUND

Laser marking systems may be utilized to imprint markings, for example, images, identification numbers, expiration dates, bar codes, etc. on the surfaces of various products. Manufacturers often prefer that laser marking of products is repeatable such that each of a particular product passing through a laser marking system is marked in the same location on the product. Machine vision systems utilizing a camera may assist a laser marking system in identifying and determining a position and orientation of a product in the laser marking system so that a marking laser may be directed to a desired area on the product.

SUMMARY

In accordance with one aspect, there is provided a laser marking system. The laser marking system comprises a laser, an image capture device, a marking head including electromagnetic energy deflectors and at least one lens, a beam path of the laser and a beam path of the image capture device both passing through the at least one lens, and a computer system. The computer system is configured to perform a method comprising generating an image calibration model at each of multiple areas across a marking field of the laser marking system, adjusting the electromagnetic energy deflectors to direct the beam path of the image capture device to multiple different locations within the marking field of the laser marking system, and capturing image tiles at each of the multiple different locations with the image capture device, wherein at each of the multiple different locations, if a location corresponds to an area at which an image calibration model was generated, correcting the image tile according to the image calibration model generated at the location.

In some embodiments, the method the computer system is configured to perform further includes, at each of the multiple different locations, if the location does not correspond to the area at which the image calibration model was generated, generating an interpolated image calibration model for the location from calibration models of other locations proximate the location, and correcting the image tile according to the interpolated image calibration model.

In some embodiments, the method the computer system is configured to perform further includes stitching the image tiles to produce a composite image of the marking field.

In some embodiments, the method the computer system is configured to perform further includes cropping the image tiles prior to stitching the image tiles.

In some embodiments, the method the computer system is configured to perform further includes identifying a location and orientation of an image of a workpiece within the composite image of the marking field.

In some embodiments, the method the computer system is configured to perform further includes determining a location and orientation of a mark to be applied to the workpiece based on the location and orientation of the image of the workpiece within the composite image of the marking field.

In some embodiments, the method the computer system is configured to perform further includes applying the mark to the workpiece with the laser.

In accordance with another aspect, there is provided a method of generating an image of a marking field in a laser marking system. The method comprises capturing image tiles having a first size at each of first multiple different locations within the marking field with an image capture device of the laser marking system, determining portions of images in the image tiles that are non-distorted, determining a size of the portions of the images in the image tiles that are non-distorted, capturing reduced-size image tiles having sizes corresponding to the size of the portions of the images in the image tiles that are non-distorted at each of second multiple different locations within the marking field with the image capture device, and stitching the reduced-size image tiles to form a full-field image of the marking field.

BRIEF DESCRIPTION OF THE DRAWINGS

Various aspects of at least one embodiment are discussed below with reference to the accompanying figures, which are not intended to be drawn to scale. The figures are included to provide illustration and a further understanding of the various aspects and embodiments, and are incorporated in and constitute a part of this specification, but are not intended as a definition of the limits of the invention. In the figures, each identical or nearly identical component that is illustrated in various figures is represented by a like numeral. For purposes of clarity, not every component may be labeled in every figure. In the figures:

FIG. 1A illustrates a block diagram of a laser marking system;

FIG. 1B illustrates a block diagram of another laser marking system;

FIG. 1C illustrates a block diagram of another laser marking system;

FIG. 2 illustrates a block diagram of a computing device;

FIG. 3 illustrates the field of view of an imaging device of a laser marking system within a marking field of the laser marking system;

FIG. 4A illustrates an act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 4B illustrates another act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 4C illustrates another act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 4D illustrates another act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 4E illustrates another act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 4F illustrates another act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 4G illustrates another act in a method of capturing image tiles within the marking field of the laser marking system and the creation of a composite image from a stitching of the image tiles;

FIG. 5A illustrates an example a composite image of a marking field of a laser marking device including workpieces;

FIG. 5B illustrates an image model generated from one of the workpieces in the composite image of FIG. 5B;

FIG. 6A illustrates the identification and determination of position and orientation of a workpiece in a composite image of a marking field of a laser marking device utilizing an image model of the workpiece;

FIG. 6B illustrates the identification and determination of position and orientation of a workpiece in a composite image of a marking field of a laser marking device utilizing an image model of the workpiece and two additional feature modules of features of the workpiece;

FIG. 7A illustrates a source of image distortion in a laser marking system;

FIG. 7B illustrates another source of image distortion in a laser marking system;

FIG. 8A illustrates a pattern that may be imaged in a laser marking system;

FIG. 8B illustrates how an image of the pattern of FIG. 8A may be distorted prior to correction;

FIG. 9A illustrates a full-field pattern that may be imaged in a laser marking system;

FIG. 9B illustrates how an image of the full-field pattern of FIG. 9A may be distorted prior to correction;

FIG. 10A illustrates improper image tile stitching that may be performed in a laser marking system if the image tiles are not properly corrected;

FIG. 10B illustrates areas in the image of FIG. 10A having varying degrees of distortion;

FIG. 10C illustrates the image of FIG. 10A after image correction is applied to the individual image tiles;

FIG. 11 illustrates interpolation of image calibrations for an area in a marking field of a laser marking system at which image calibration was not performed;

FIG. 12A illustrates a portion of an image of a sample of text imaged proximate the edge of a marking field in a laser marking system with a TTL imaging system calibrated using only a single center field calibration pattern;

FIG. 12B illustrates the same sample of text as in FIG. 12A with the TTL imaging system calibrated using a multiple pattern calibration process as disclosed herein;

FIG. 13A illustrates an array of small parts imaged without using interpolation of calibration factors from calibrated areas proximate items located in an image field of a laser marking system at areas in which image calibration was not performed;

FIG. 13B illustrates an array of images of the items of FIG. 13A after interpolated image calibrations were applied to the images of the items;

FIG. 14A illustrates an example of an image prior to correction;

FIG. 14B illustrates the image of FIG. 14A after correction;

FIG. 14C illustrates the corrected image of FIG. 14B after cropping;

FIG. 15 is a flowchart of a method for calibrating the vision system including full-field distortion correction and full-field imaging as optional features in a laser marking system;

FIG. 16A is a screen shot illustrating a step in the method of FIG. 15;

FIG. 16B is a screen shot illustrating another step in the method of FIG. 15; and

FIG. 17 is a flowchart of a method of capturing an individual image of a portion of a marking field from any location with the marking field of a laser scanner system.

DETAILED DESCRIPTION

In some examples of laser marking systems, a camera may be integrated with the laser optics to image a workpiece to be marked through the same lens as a laser used to mark the workpiece passes. Such camera arrangements are referred to as “through-the-lens” cameras. The field of view (FOV) of a through-the-lens camera may cover only a small portion (˜3%) of the overall laser marking field of a laser marking system. As a result, it can be difficult to train a laser marking system utilizing a through-the-lens camera vision system to recognize workpieces that are larger than the camera FOV. The through-the-lens camera vision system may impose restrictions on the placement of such workpieces in the laser marking system during production. When the entire outline of the workpiece cannot be seen, there may not be sufficient edges within the FOV for repeatable alignment, even with multiple vision models. Multiple vision models may be used to validate a specific workpiece, however, in addition to being difficult to train, workpieces that are aligned with multiple models must be placed carefully within the laser marking system during production. This can lead to the need for workpiece-specific fixtures, an increased risk of failure due to misplaced workpieces, extra operator training, etc. External imaging solutions, in which the camera does not look through the lens of the laser, may be able to register larger workpieces, but tend to be slow or inaccurate because the workpiece must be imaged at an angle, or physically moved between imaging and laser marking. In systems utilizing a camera that is offset from the laser lens, improper positioning of the workpiece may hide or distort an image of a feature of a workpiece that the system uses to identify the workpiece or to determine a position or orientation of the workpiece.

Aspects and embodiments disclosed herein include a laser marking system having functionality for identifying a product or workpiece to be marked and an orientation of the workpiece to be marked within the working area of the laser marking system so that the location of an area on the workpiece to be marked by the laser marking system can be determined. The laser marking system may consistently mark workpieces in desired locations regardless of how the workpieces are oriented when placed within the working area of the laser marking system. A machine vision system may capture an image of an entire workpiece to be marked and compare the image to models in a database to identify the workpiece. An outline of the workpiece and/or the position of one or more target features of the workpiece may be utilized to determine an orientation of the workpiece. The location on the workpiece where the workpiece is to be marked and an orientation of the mark to be applied to the workpiece may be determined from the position and orientation of the workpiece and/or the position and relative location of one or more target features. An image of the entire marking field of a laser marking system may be generated by combining multiple images from different locations, allowing workpieces much larger than the camera FOV to be seen in any orientation.

Aspects and embodiments disclosed herein provide for workpieces that are larger than the camera FOV to be trained easily for run-time vision processing (including mark alignment), reducing the job setup time for such workpieces. Furthermore, an operator may place the workpiece into the system in any orientation for processing, provided that the previously trained workpiece surface is visible.

Aspects and embodiments disclosed herein may utilize a through-the-lens camera arrangement that images a workpiece to be marked directly from above, along a same or substantially similar optical path as a laser used to mark the workpiece. By imaging the workpiece directly from above, aspects and embodiments disclosed herein avoid possible problems with the use of an external camera that images the workpiece at an angle, which can lead to shading and obstructions that change significantly in the image when the part is rotated.

Aspects and embodiments disclosed herein work by using through-the-lens vision capability to capture multiple images from different locations in the marking field of a laser marking system. The calibration of the vision system allows each image to be captured from a precise location by directing scanhead mirrors of the system as desired, before each capture. The images are then arranged in a grid and combined into a single image that covers the entire marking field. This image can then be used for standard vision activities (model training, job processing, etc.)

Herein, the term “mark” and its variants are used to refer not only to marking, but to other alterations of a workpiece performed by a laser, for example, etching, engraving, machining, cutting, welding, etc. In certain implementations, for example, marking entails producing a graphic on a workpiece using a process of capturing an image of the workpiece, comparing the position and orientation of the workpiece to a pre-existing computer-based model of the workpiece and the desired graphic, relatively oriented to their properly aligned positions, and marking the graphic on the workpiece using a laser to match the graphic positioned on the pre-existing computer-based model of the workpiece.

One example of a specially designed laser marking system including a through-the-lens camera arrangement which may be utilized in various embodiments disclosed herein is illustrated in FIG. 1A. The laser marking system 100 may comprise a marking scanhead 120, laser 140, and through-the-lens (TTL) vision system comprising a through-the-lens autofocus module 160 and camera device 162. The scanhead 120 may include galvo mirrors 124A and 124B and lens 136 (i.e., first lens). By way of non-limiting example, the lens 136 may be an F-theta focusing lens. The galvo mirrors 124A and 124B include X and Y axis mirrors and galvanometers. In operation, the galvo mirrors 124A and 124B are angularly adjustable to allow a laser beam from the laser 140 to mark a portion of a workpiece X anywhere within a marking field of the laser marking system (i.e., marking field 310 in FIG. 3).

Laser marking system 100 may employ a non-contact printing method providing mark quality and permanence. The laser marking system may include CO₂, Fiber, or ultraviolet (UV) laser sources in different power outputs to address a range of substrates and applications. The CO₂ laser sources may include laser sources having a power of 10 W, 30 W or 50 W. By way of non-limiting example, the laser 140 may be an infrared (IR) laser. The laser marking system 100 may be configured to apply a code having one or more of a serial number, time, date, and lot code. The laser marking system 100 may be configurable to apply a code in a particular code format including, without limitation, according to an industry standard code format.

The through-the-lens (TTL) vision system may comprise a camera device 162 which may be embedded in the marking scanhead 120 to capture images of the workpiece X through the F-theta lens 136 and TTL mirror 170. The camera device 162 may include a fixed focus lens 163 (i.e., second lens). Alternatively, the lens 163 may be variable to provide for the camera device 162 to adjust its focus. The TTL mirror 170 is in a path to receive reflections of the galvo mirrors 124A and 124B. In operation, by moving the galvo mirrors 124A and 124B, the camera view of camera device 162 may be directed at any area within the marking field (i.e., marking field 310 in FIG. 3) until any part of the workpiece X is in the field of view (FOV) of the camera device 162. The TTL mirror 170 may be a dichroic mirror. In other embodiments the TTL mirror 170 may be a regular (non-dichroic) mirror.

In an embodiment, the beam path of laser 140 may be directed to the galvo mirrors 124A and 124B. However, the beam path of the laser 140 bypasses the mirror 170 such that the beam path of the laser 140 is not reflected from the mirror 170 of the TTL vision system.

The system 100 may further comprise a processor or computing device 150 configured to perform an autofocus procedure and system calibration procedures to ensure that the focus point of the camera device 162 matches the focus point of the marking laser 140. The computing device 150 will be described in more detail in relation to FIG. 2. The controller 165 controls, via control line C3, the activation of the laser 140 to mark the workpiece X with a laser beam. The laser control may be part of the computer device 150.

The camera device 162 may be embedded in the laser 140 and may share galvo mirrors 124A and 124B with laser 140. The galvo mirrors 124A and 124B allow the camera device 162 to find focus on the majority of the marking field (i.e., marking field 310 in FIG. 3) through the lens 136. The beam path of the camera is represented as the short-dashed line. The laser beam path is represented as the long-dashed line. The camera device 162 may communicate with computing device 150 via control lines Cl and the autofocus module to capture the image of the target surface of the workpiece. The captured image may be a camera view image. Any offset in a measured position of parts of the workpiece X caused by differences between the beam path of the camera and the laser beam path may be compensated for by software running on the computer device 150. The communications between the camera device 162 and the computing device may be conducted over control line C1 but may also be wireless.

The system 100 may further comprise a laser and axis scanhead (L&AS) controller 165.

The L&AS controller 165 may communicate with computing device 150 to receive the autofocus control signals C2. Based on the autofocus control signals C2, the L&AS controller causes the focal plane of the laser 140 and/or camera 162 to be adjusted utilizing one or more focusing methods known in the art. While lines are shown for control signals C1, C2, and C3, such signals in some embodiments may be wireless. The controller 165 may be a single controller or multiple controllers. For example, there may be one controller to operate the laser 140 and a separate and independent controller to operate the camera 162.

The TTL autofocus module 160 may include tools for identifying a Region of Interest (ROI) and an autofocus ROI editor. The ROI is a user-specified targeting of any surface on the workpiece X which is to be marked. The TTL autofocus module 160 may include a focus measurement level. The focus measurement level is at its highest where the focus is best, and lower everywhere else. The TTL autofocus module 160 may include finding a focus peak via a focus peak determination algorithm.

FIG. 1B illustrates a block diagram of another laser marking system 100′. The system 100′ is similar to system 100. A difference between system 100 and system 100′ is that in system 100′ mirror 170 is a dichroic mirror placed in both the beam path of the laser 140 and the camera 162 line of sight. The laser 140 emits laser radiation at a frequency, for example, in the infrared band, at which the mirror 170 is transparent. The mirror 170 may reflect light in the visible spectrum into the camera 162. In a non-limiting example, the mirror 170 may be a silicon mirror. In system 100′ the beam path of the camera 162 and that of the laser 140 are parallel or overlapping such that the position of a part of the workpiece X measured by the camera 162 will accurately reflect the position of the part of the workpiece X the laser beam will be directed to.

FIGS. 1A and 1B illustrate laser marking systems in which a laser 140, camera 162, and mirror 170 are disposed within the housing 122 of the scanhead 120. In other embodiments, for example, as illustrated in FIG. 1C, the laser 140, camera 162, and mirror 170 are disposed outside of the housing 122 of the scanhead 120 while the galvo mirrors 124A and 124B (not illustrated in FIG. 1C) are disposed within the housing 122 of the scanhead 120.

Referring now to FIG. 2, in a basic configuration, the computing device 150 may include any type of stationary computing device or a mobile computing device. The computing device may be a computing system with one or more servers, each server including one or more processors. The term computing device and computing system may be interchangeable.

Computing device 150 may include one or more processors 252 and system memory in hard drive 254. Depending on the exact configuration and type of computing device, system memory may be volatile (such as RAM 256), non-volatile (such as read only memory (ROM 258), flash memory 260, and the like, or some combination thereof. System memory may store operating system 264, one or more applications, and may include program data for performing the processes described herein. Computing device 150 may also have additional features or functionality. For example, computing device 150 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Computer storage media may include volatile and non-volatile, non-transitory, removable and non-removable media implemented in any method or technology for storage of data, such as computer readable instructions, data structures, program modules or other data. System memory, removable storage and non-removable storage are all examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, Electrically Erasable Read-Only Memory (EEPROM), flash memory or other memory technology, compact-disc-read-only memory (CD-ROM), digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other physical medium which can be used to store the desired data and which can be accessed by computing device. Any such computer storage media may be part of device.

Computing device 150 may also include or have interfaces for input device(s) (not shown) such as a keyboard, mouse, pen, voice input device, touch input device, etc. The computing device 150 may include or have interfaces for connection to output device(s) such as a display 155, speakers, etc. The computing device 150 may include a peripheral bus 266 for connecting to peripherals. Computing device 150 may contain communication connection(s) that allow the device to communicate with other computing devices, such as over a network or a wireless network. By way of example, and not limitation, communication connection(s) may include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared and other wireless media. The computing device 150 may include a network interface card 268 to connect (wired or wireless) to a network.

Computer program code for carrying out operations described above may be written in a variety of programming languages, including but not limited to a high-level programming language, such as Java, C, or C++, for development convenience. In addition, computer program code for carrying out operations of embodiments described herein may also be written in other programming languages, such as, but not limited to, interpreted languages. Some modules or routines may be written in assembly language or even micro-code to enhance performance and/or memory usage. It will be further appreciated that the functionality of any or all of the program modules may also be implemented using discrete hardware components, one or more application specific integrated circuits (ASICs), or a programmed Digital Signal Processor (DSP) or microcontroller. A code in which a program of the embodiments is described can be included as a firmware in a RAM, a ROM and a flash memory. Otherwise, the code can be stored in a tangible, non-transitory computer-readable storage medium such as a magnetic tape, a flexible disc, a hard disc, a compact disc, a photo-magnetic disc, a digital versatile disc (DVD).

The embodiments may be configured for use in a computer or a data processing apparatus which includes a memory, such as a central processing unit (CPU), a RAM and a ROM as well as a storage medium such as a hard disc.

A marking field of a laser scanning system is the area over which the mirrors 124A and 124B in the scanhead 120 of the laser marking system may direct a laser beam from a laser 140 to mark a workpiece. The marking field of a laser marking system may be significantly larger than the FOV of a camera 162 of the laser scanning system, especially in embodiments in which the camera is arranged in a TTL vision system as described with reference to the systems of FIGS. 1A-1C. FIG. 3 illustrates the extent of a FOV 305 of a camera 162 in one example of a laser scanning system utilizing a TTL vision system relative to an area of the marking field 310 of the laser scanning system. As illustrated in FIG. 3, the FOV 305 of the camera 162 covers only a very small portion of the marking field 310. In one non-limiting example, the FOV 305 of the camera 162 may be about 2 cm across, while the marking field 310 may be up to 12 cm or 20 cm per side. For workpieces having dimensions greater than that of the FOV 305 of the camera 162 only a portion of the workpiece may fit within the FOV 305. For example, as illustrated in FIG. 3 only the central hinge portion of a clamp 315 to be marked is visible in the FOV 305 of the camera 162. Such a small portion of a workpiece may be insufficient for the laser marking system to align to and to determine an accurate location to apply a desired mark to the workpiece. For a workpiece small enough to fit within the FOV 305, if the workpiece is not placed in a known location within the marking field 310, for example, within a mounting bracket or fixture at a known location, it might take the laser marking system an undesirably long time to even locate the workpiece. Accordingly, in some previous implementations, the industry relies on dedicated fixtures or on an external camera to provide for a laser scanning system to identify and align to a workpiece. Dedicated fixtures add cost and external cameras have a perspective effect. To minimize the perspective effect, the part has to be in a specific orientation for the vision system to accurately identify and align to it; this is particularly true for parts that have a certain height. The taller the part, the more the orientation of the part is restricted and a fixture is required.

To overcome these difficulties, aspects and embodiments disclosed herein take multiple images (referred to herein as “tiles”) throughout the marking field 310 and then stitch the tiles together to create a representation of a substantial portion or complete area of the marking field 310. As illustrated in FIGS. 4A-4G, the laser scanning system captures a first image or “tile” 320 within the marking field 310 that spans the FOV of the camera 162. The first tile 320 may be substantially centered within the marking field 310. Additional tiles 320 are captured about the first tile until a desired area of the marking field 310 is imaged. The plurality of tiles 320 are digitally stitched together to form a composite image 325 of a desired portion of the marking field 310 as illustrated in FIG. 4G. In the example of FIGS. 4A-4G, the tiles are captured in an order spiraling out from the location of the first tile, however, in other embodiments, the tiles may be captured row-by-row or column-by-column.

Another example of a composite image of a marking field 310 including a plurality of stitched tiles 320 illustrating three clamps 315 is illustrated in FIG. 5A. In some embodiments, a vision model used to identify workpieces in a composite image of a marking field 310 is created using a computer model of a workpiece, for example using computer aided design (CAD) software. In other embodiments, a vision model used to identify workpieces in a composite image of a marking field 310 is created by analyzing a representative workpiece (a “master”) in a first composite image of a marking field 310 including the representative workpiece, for example, the clamp 315 in FIG. 5B. Edge detection techniques or other image processing techniques may be used to create the vision model of the workpiece, for example, a model of an outline of at least a portion of the workpiece from analysis of the first composite image of the marking field 310 including the representative workpiece. A vision model of a clamp 315 in FIG. 5B is represented at 330.

After the vision model of a particular workpiece is created, a user may place a workpiece for laser marking on a stage within a marking field 310 of the laser marking system. The workpiece need not be oriented in a particular orientation or located at a particular location within the marking field. Responsive to receipt of instructions to locate a workpiece and laser mark the workpiece with a desired mark in a desired location, the laser marking system captures multiple image tiles of the marking field 310 and attempts to verify that a workpiece discovered in the marking field has features matching that of a previously created or predefined vision model. As illustrated in FIG. 6A, the laser marking system may identify the workpiece, e.g., clamp 315 with the previously created vision model 330. Based on how the vision model 330 is oriented and a location within the marking field 310 the vision model is located to match the features of the workpiece, the orientation and position of the physical workpiece is determined. The position of the physical workpiece may be determined with a degree of error of less than about 200 μm, less than about 150 μm, or about 100 μ. From the determination of the orientation and position of the physical workpiece a position and orientation of a desired mark to be laser marked on the workpiece is determined. The mark is applied to the desired location on the workpiece in the desired orientation. In some embodiments, a laser marking system may be instructed to seek multiple of the same type of workpiece within the marking field 310 and to identify and mark the multiple workpieces in a single operation. In some embodiments, a laser marking system may be instructed to seek multiple different types of workpieces within the marking field 310 utilizing different vision models and to identify and mark the multiple different types of workpieces in a single operation.

For additional alignment accuracy, in addition to using the vision model 330 to identify the location and orientation of a workpiece, one or more additional feature models 335 may be applied to the stitched composite image of the marking field 310 including the workpiece to identify the position of the one or more additional features on the physical workpiece. Knowledge of the position of the one or more additional features on the physical workpiece may be used to refine the position and orientation determination performed by applying the vision model 330 to the stitched composite image of the marking field 310 including the workpiece. FIG. 6B illustrates two additional feature models 335 used to identify the location of two additional features of the clamp. The use of the one or more additional feature models 335 in conjunction with the vision model 330 to determine a location and orientation of the workpiece may increase the alignment and position determination accuracy to between about 25 μm and about 50 μm. The additional feature models may be generated and used to identify the location of the one or more additional features of the workpiece using a Multi Model Registration technique as described in co-owned U.S. Pat. No. 8,000,831 titled MULTI MODEL REGISTRATION (MMR) FOR A GALVONOMETER AND LASER SYSTEM, which is incorporated by reference herein in its entirety for all purposes.

In some previously implemented laser marking systems incorporating TTL vision systems, camera calibration was performed using a calibration pattern, for example, an array of dots laser marked onto a calibration plate. Camera calibration was performed using the array of dots located at a position at or proximate a center of the marking field 310. During calibration the system generated and recorded a data file including parameters used to convert between camera pixels and real-world millimeters in the marking plane and another data file defining the angle between the camera and the marking field. The same calibration parameters that were defined for the calibration pattern at the center of the marking field were also applied to images at other locations in the marking field, for example, near edges of the marking field.

It has been discovered that the previously utilized calibration method may have been sub-optimal. It has been discovered that in TTL vision systems calibrated with the previously utilized calibration method camera imaging quality degrades as images are captured toward the corners of the marking field. The TTL camera image suffered from a distortion that displayed objects as stretched and rotated. Without being bound to a particular theory, it is believed that the source of this image distortion resulted from a combination of the dual mirrors 124A, 124B used in the scan head and lens distortion from the lens 136 as illustrated in FIGS. 7A and 7B. For example, an array of dots as illustrated in FIG. 8A located near the edge of the marking field might appear as illustrated in FIG. 8B. Another example of image distortion exhibited in previous systems is illustrated in FIGS. 9A and 9B, where the full field pattern illustrated in FIG. 9A appeared as illustrated in FIG. 9B.

Image distortion in TTL vision systems calibrated with the previously utilized calibration method may also have resulted in imperfect image tiling, for example, as illustrated in the circled areas of FIG. 5A wherein portions of the clamps that were imaged close to the edges of the marking field do not perfectly align. Another example of the resultant improper stitching is illustrated in FIGS. 10A and 10B. FIG. 10A is a full-field image scan (6×8) showing severe distortion at the outer image boundaries where portions of the imaged text do not align. In FIG. 10B areas that included accurate/usable image pixels are labelled “A”, areas that included somewhat distorted pixels are labelled “B”, and areas that included severely distorted pixels are labelled “C”. A full-field image scan performed with the TTL camera calibrated as disclosed herein is illustrated in FIG. 10C. The distortions present in FIG. 10A are not present in FIG. 10C and the imaged text aligns well even at areas at edges of the marking field.

An improved calibration method includes correcting the previously observed image distortion by using a multiple pattern calibration process that covers the full marking field. In some examples, a plurality, for example, 24, 35, 48 or more calibration patterns are utilized to cover the full marking field. From each pattern a calibration file is generated. In one example, a grid of unique camera calibrations is generated at regular intervals across the entire laser marking field. Each calibration is based on a local array of laser-marked calibration dots. The generated calibrations are then applied to all subsequent images captured at those locations, correcting for the corresponding distortion in the images. During runtime, based on where the galvanometers are pointing, the imaging software chooses or interpolates between the different calibrations recorded during a full field image calibration. The calibration may be performed during the installation of the laser marking system and be can performed periodically as part of a maintenance schedule.

An example of interpolating an image calibration of an area in a marking field between different calibrations recorded during a full field image calibration is illustrated in FIG. 11. Individual images captured between the calibration grid locations cannot be corrected directly with any of the stored calibrations from the calibration grid. Instead, these images are corrected with a dynamically generated calibration, by interpolating the X and Y coordinates for all of the dots in the calibration pattern (63 dots in the example illustrated in FIG. 11). The dynamically generated calibration in the center of FIG. 11 corrects for the image distortion at any location in the laser marking field, based on proximity to the calibrated grid locations.

FIG. 12A illustrates a portion of an image of sample of text imaged proximate the edge of a marking field in a laser marking system with a TTL imaging system calibrated using only a single center field calibration pattern. FIG. 12B illustrates the same sample of text imaged proximate the edge of the marking field in the laser marking system with the TTL imaging system calibrated using a multiple pattern calibration process as disclosed herein. Comparing FIG. 12A to FIG. 12B, it is clearly visible that the text “and” and “Technigraph” only line up after the calibration has been corrected utilizing a multiple pattern calibration process as disclosed herein.

The benefit of utilizing interpolation of an image calibration of areas in a marking field between different calibrated areas is illustrated in FIGS. 13A and 13B. FIGS. 13A and 13B illustrate a tray of 20 parts that are not located at the positions in a marking field at which calibration grids were located during camera calibration. FIG. 13A illustrates an array of parts imaged without using interpolation of calibration factors from calibrated areas proximate the part locations within the tray. The letters “A”, “B”, and “C” illustrate individual part locations within the tray that include accurate/usable image pixels, that include somewhat distorted pixels, and that include severely distorted pixels, respectively. FIG. 13B illustrates an array of parts imaged in the same tray as in FIG. 13A but with camera calibration interpolation utilized to correct the individual images.

In some embodiments, the outer portion of every corrected image is cropped to avoid visible gaps between adjacent images when tiled. When an image is corrected, all of the available pixels may be displaced to correct for the measured distortion. As a result, gaps may appear at the edges of the image where pixels are not available. The gaps are eliminated by capturing the images at closer intervals (so that they overlap) and cropping the outside edge of each image. FIG. 14A illustrates an example of an image prior to correction. FIG. 14B illustrates the image of FIG. 14A after correction. FIG. 14C illustrates the corrected image of FIG. 14B after cropping.

FIG. 15 is a flowchart of a method for calibrating a full field image in a laser marking system.

A first series of acts in the method involve marking a calibration plate to form a pre-defined calibration pattern on a flat surface (FIG. 16A). These acts include moving the galvo mirrors 124A and 124B into a home position (arbitrary X, Y co-ordinates 0,0), placing an unmarked calibration plate (for example, a metal plate) onto the stage of the laser marking system, and moving the stage into a marking position (a working distance of the laser) if not already in the marking position. The mark parameter settings, for example, laser intensity and marking speed are adjusted based on, for example, a material of the marking plate. A calibration pattern, for example, an array of dots is then laser marked onto the calibration plate. Camera parameters, for example, focus, gain and/or alignment and lighting parameters, for example, brightness are adjusted as needed so that the marked calibration pattern is clearly visible to the camera of the laser marking system.

Next, camera calibration at a first position in the marking field is generated. An operator instructs the laser marking system to perform a calibration operation and the system creates an indicator, for example, a cross-hair superimposed on an image of the calibration plate on a display of the system, and adjusts the location of the indicator to indicate the calibrated image origin. (FIG. 16B.) The user may indicate different locations or marks on the calibration plate to confirm that the indicator reliably moves to the position indicated to verify the initial calibration. If the indicator does not reliably track the indications provided by the user, the mark parameters and/or camera and lighting parameters may be adjusted and the initial calibration re-performed.

In a next set of acts, if distortion correction across the marking field is desired, the camera calibration that was performed at the first position in the marking field is repeated for additional positions in the marking field. In some embodiments, different camera calibrations are performed at up to 24, 35, 48, or more locations in the marking field. From the multiple camera calibrations, the system generates and records a data file including parameters used to convert between camera pixels and real-world millimeters in the marking plane and another data file defining the angle between the camera and the marking field. The user instructs the system to generate a vision model based on the defined size and location of the calibration patterns. The user may confirm the stability of the model training by instructing the system to find one or more of the calibration patterns several times and verify that the system finds and displays the calibration patterns in the proper location in the display.

A camera-to-laser field calibration is then performed in which a correction for lens distortion across the entire laser marking field is generated. The user instructs the laser marking system to perform the camera-to-laser field calibration by pressing an appropriate button on the user interface of the system, for example, a “Calibrate” button. The system moves the laser galvo mirrors to each of the calibration pattern locations on the marking plate. At each galvo position, the system camera captures an image and determines the precise location of each calibration pattern. Based on the determined locations of each of the calibration patterns, the system generates and records a polynomial equation defining differences between expected and actual galvo positions at which the calibration patterns were located that allows accurate imaging across the marking field. The maximum “residual” indicating the least accurate calibration point is calculated and is checked to ensure it is not greater than a predefined maximum value, typically 0.050 mm or less.

A full-field calibration plate is then marked. An unmarked plate is placed in the laser marking field and the plate and/or laser position is adjusted as needed to place the plate at the laser working distance (the laser focus distance). Mark parameter settings are adjusted as needed and the calibration plate is marked, for example, with an array of dots. The camera and lighting settings are adjusted so that the dots are clearly visible.

A full field-image calibration is then generated. The user instructs the system to perform the full-field calibration by selecting a “Calibrate” button or other command indicator in the user interface of the system. A laser target indicator, for example, a cross hair is superimposed over an image of the marked calibration plate in a display of the system. The system adjusts a position of the cross-hair to indicate the calibrated image origin. The user may check the calibration accuracy by using a mouse or other pointing device to select different locations on the image of the marked calibration plate and checking that the laser target indicator reliably moves to the selected locations. From the full-field image calibration the system generates and records a data file for conversion between full-field image pixels and real-world millimeters in the laser marking system marking plane.

A method of capturing a full-field image of a marking field of a laser scanner system is illustrated in the flowchart of FIG. 17. At act 1705 multiple image calibration models at multiple corresponding areas in the marking field of the laser marking system are generated in accordance with an embodiment of the method described above. In act 1710 an image tile is captured by an image capture device of the laser marking system. In act 1715 it is determined if the location of the image tile corresponds to or is within an area at which an image calibration model was generated. If so, the image calibration model in the area corresponding to the image tile is applied to the image tile (act 1720). If the location of the image tile does not correspond to or is not within an area at which an image calibration model was generated, an interpolated image calibration model is generated from image calibration models from areas, for example, two or four areas, adjacent to the location of the image tile, and the interpolated image calibration model is applied to the image tile (act 1725). In act 1730, it is determined whether the captured image tiles include a desired area of the marking field. If so, the image tiles are stitched to form a composite image of the marking field (act 1735). If the desired area of the marking field has not yet been captured, the method returns to act 1710 and an additional image tile at a different location in the marking field is captured.

In accordance with another embodiment, the problem of the distortion in the full-imaging scan as illustrated in FIG. 10A may be resolved using an alternative to the solution described above. Instead of correcting for the distortion in the images, it is also possible to use only the portion of each image that is not distorted. To build a complete image over the entire laser marking field, more images may be captured at closer intervals. For example, if only ⅛ of the width and height at the center of each image is usable, then a total of 64 times as many image captures may be performed for a single full-field scan, as compared to the method described above. The alternate embodiment may be more time consuming than the method described above. For example, a scan of 48 images at 30 ms per image may increase from 1.44 s to >90 s (>3000 images).

Having described above several aspects of at least one embodiment, it is to be appreciated various alterations, modifications, and improvements will readily occur to those skilled in the art. Such alterations, modifications, and improvements are intended to be part of this disclosure and are intended to be within the scope of the invention. It is to be appreciated that embodiments of the methods and apparatuses discussed herein are not limited in application to the details of construction, dimensions, or the arrangement of components set forth in the foregoing description or illustrated in the accompanying drawings. The methods and apparatuses are capable of implementation in other embodiments and of being practiced or of being carried out in various ways. Examples of specific implementations are provided herein for illustrative purposes only and are not intended to be limiting. Also, the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use herein of “including,” “comprising,” “having,” “containing,” “involving,” and variations thereof is meant to encompass the items listed thereafter and equivalents thereof as well as additional items. References to “or” may be construed as inclusive so that any terms described using “or” may indicate any of a single, more than one, and all of the described terms. Any references to front and back, left and right, top and bottom, upper and lower, and vertical and horizontal are intended for convenience of description, not to limit the present systems and methods or their components to any one positional or spatial orientation. Accordingly, the foregoing description and drawings are by way of example only. 

What is claimed is:
 1. A laser marking system comprising: a laser; an image capture device; a marking head including electromagnetic energy deflectors and at least one lens, a beam path of the laser and a beam path of the image capture device both passing through the at least one lens; and a computer system configured to perform a method comprising: generating an image calibration model at each of multiple areas across a marking field of the laser marking system; adjusting the electromagnetic energy deflectors to direct the beam path of the image capture device to multiple different locations within the marking field of the laser marking system; and capturing image tiles at each of the multiple different locations with the image capture device, wherein at each of the multiple different locations, if a location corresponds to an area at which an image calibration model was generated, correcting the image tile according to the image calibration model generated at the location.
 2. The system of claim 1, wherein the method the computer system is configured to perform further includes, at each of the multiple different locations, if the location does not correspond to the area at which the image calibration model was generated, generating an interpolated image calibration model for the location from calibration models of other locations proximate the location, and correcting the image tile according to the interpolated image calibration model.
 3. The system of claim 2, wherein the method the computer system is configured to perform further includes stitching the image tiles to produce a composite image of the marking field.
 4. The system of claim 3, wherein the method the computer system is configured to perform further includes cropping the image tiles prior to stitching the image tiles.
 5. The system of claim 4, wherein the method the computer system is configured to perform further includes identifying a location and orientation of an image of a workpiece within the composite image of the marking field.
 6. The system of claim 5, wherein the method the computer system is configured to perform further includes determining a location and orientation of a mark to be applied to the workpiece based on the location and orientation of the image of the workpiece within the composite image of the marking field.
 7. The system of claim 6, wherein the method the computer system is configured to perform further includes applying the mark to the workpiece with the laser.
 8. A method of generating an image of a marking field in a laser marking system, the method comprising: capturing image tiles having a first size at each of first multiple different locations within the marking field with an image capture device of the laser marking system; determining portions of images in the image tiles that are non-distorted; determining a size of the portions of the images in the image tiles that are non-distorted; capturing reduced-size image tiles having sizes corresponding to the size of the portions of the images in the image tiles that are non-distorted at each of second multiple different locations within the marking field with the image capture device; and stitching the reduced-size image tiles to form a full-field image of the marking field. 